<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>


		<record id="product_template_form_view_belber" model="ir.ui.view">
			<field name="name">product.template.common.form.belber</field>
			<field name="model">product.template</field>
			<field name="inherit_id" ref="product.product_template_form_view"/>
			<field name="arch" type="xml">
				<div class="oe_title" style="width: 390px;" position="replace">
					<div class="oe_title" style="width: 390px;">
                		<label class="oe_edit_only" for="name" string="SKU"/>
                		<h1><field name="name" class="oe_inline" readonly="1"/></h1>
            		</div>
            	</div>
				<notebook position="inside">
					<page string="Other Setup">
						<group>
                    		<group>
								<field name="belber_product_business_id" groups="stock.group_stock_manager"/>
								<field name="belber_product_segment_id" groups="stock.group_stock_manager"/>
								<field name="belber_product_group_id" groups="stock.group_stock_manager"/>
								<field name="belber_product_category_id" groups="stock.group_stock_manager"/>
								<field name="belber_year"/>
								<field name="belber_launch_season"/>
								<field name="belber_line"/>
								<field name="belber_product_model_id" required="1" groups="stock.group_stock_manager"/>
								<field name="belber_product_material_id" required="1" groups="stock.group_stock_manager"/>
								<field name="belber_product_colour_id" required="1" groups="stock.group_stock_manager"/>
								<field name="belber_metal_code" required="1"/>
								<field name="belber_metal_colour"/>
								<field name="belber_dimensions_ch"/>
							</group>
                    		<group>
								<field name="belber_product_size_id" groups="stock.group_stock_manager"/>
								<field name="belber_price_point"/>
								<field name="belber_rrp"/>
								<field name="belber_whole_sale_price"/>\
								<field name="belber_supplier_ref"/>
								<field name="belber_supplier_code"/>
								<field name="belber_supplier_name"/>
								<field name="belber_supplier_cost_price"/>
							</group>
						</group>
					</page>
				</notebook>
			</field>
		</record>

        <record id="belber_product_business_tree_view" model="ir.ui.view">
            <field name="name">belber.product.business.tree</field>
            <field name="model">belber.product.business</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Business">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>

        <record id="belber_product_business_form_view" model="ir.ui.view">
            <field name="name">belber_module.belber.product.business.form</field>
            <field name="model">belber.product.business</field>
            <field name="arch" type="xml">
            	<form string="Business">
            		<group>
            			<field name="name"/>
            			<field name="description"/>
            		</group>
            		<group>
            		</group>
            	</form>
            </field>
        </record>

        <record id="belber_product_business_action" model="ir.actions.act_window">
            <field name="name">Business</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">belber.product.business</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="belber_product_business_tree_view"/>
        </record>

        <menuitem action="belber_product_business_action"
            id="menu_belber_product_business_action"
            parent="stock.menu_product_in_config_stock" sequence="3"/>

        <record id="belber_product_segment_tree_view" model="ir.ui.view">
            <field name="name">belber.product.segment.tree</field>
            <field name="model">belber.product.segment</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Segment">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>

        <record id="belber_product_segment_form_view" model="ir.ui.view">
            <field name="name">belber_module.belber.product.segment.form</field>
            <field name="model">belber.product.segment</field>
            <field name="arch" type="xml">
            	<form string="Segment">
            		<group>
            			<field name="name"/>
            			<field name="description"/>
            		</group>
            		<group>
            		</group>
            	</form>
            </field>
        </record>

        <record id="belber_product_segment_action" model="ir.actions.act_window">
            <field name="name">Segment</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">belber.product.segment</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="belber_product_segment_tree_view"/>
        </record>

        <menuitem action="belber_product_segment_action"
            id="menu_belber_product_segment_action"
            parent="stock.menu_product_in_config_stock" sequence="3"/>
   
        <record id="belber_product_group_tree_view" model="ir.ui.view">
            <field name="name">belber.product.group.tree</field>
            <field name="model">belber.product.group</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Product Group">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>   
            
        <record id="belber_product_group_form_view" model="ir.ui.view">
            <field name="name">belber_module.belber.product.group.form</field>
            <field name="model">belber.product.group</field>
            <field name="arch" type="xml">
            	<form string="Product Group">
            		<group>
            			<field name="name"/>
            			<field name="description"/>
            		</group>
            		<group>
            		</group>
            	</form>
            </field>
        </record>

        <record id="belber_product_group_action" model="ir.actions.act_window">
            <field name="name">Product Group</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">belber.product.group</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="belber_product_group_tree_view"/>
        </record>

        <menuitem action="belber_product_group_action"
            id="menu_belber_product_group_action"
            parent="stock.menu_product_in_config_stock" sequence="4" />
   
        <record id="belber_product_category_tree_view" model="ir.ui.view">
            <field name="name">belber.product.category.tree</field>
            <field name="model">belber.product.category</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Category">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>      
            
        <record id="belber_product_category_form_view" model="ir.ui.view">
            <field name="name">belber_module.belber.product.category.form</field>
            <field name="model">belber.product.category</field>
            <field name="arch" type="xml">
            	<form string="Category">
            		<group>
            			<field name="name"/>
            			<field name="description"/>
            		</group>
            		<group>
            		</group>
            	</form>
            </field>
        </record>

        <record id="belber_product_category_action" model="ir.actions.act_window">
            <field name="name">Category</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">belber.product.category</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="belber_product_category_tree_view"/>
        </record>

        <menuitem action="belber_product_category_action"
            id="menu_belber_product_category_action"
            parent="stock.menu_product_in_config_stock" sequence="5" />

        <record id="belber_product_function_tree_view" model="ir.ui.view">
            <field name="name">belber.product.function.tree</field>
            <field name="model">belber.product.function</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Function">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>   
            
        <record id="belber_product_function_form_view" model="ir.ui.view">
            <field name="name">belber_module.belber.product.function.form</field>
            <field name="model">belber.product.function</field>
            <field name="arch" type="xml">
            	<form string="Function">
            		<group>
            			<field name="name"/>
            			<field name="description"/>
            		</group>
            		<group>
            		</group>
            	</form>
            </field>
        </record>

        <record id="belber_product_function_action" model="ir.actions.act_window">
            <field name="name">Function</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">belber.product.function</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="belber_product_function_tree_view"/>
        </record>

        <menuitem action="belber_product_function_action"
            id="menu_belber_product_function_action"
            parent="stock.menu_product_in_config_stock" sequence="6" />
    
        <record id="belber_product_model_tree_view" model="ir.ui.view">
            <field name="name">belber.product.model.tree</field>
            <field name="model">belber.product.model</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Model Code">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>      
            
        <record id="belber_product_model_form_view" model="ir.ui.view">
            <field name="name">belber_module.belber.product.model.form</field>
            <field name="model">belber.product.model</field>
            <field name="arch" type="xml">
            	<form string="Model Code">
            		<group>
            			<field name="name"/>
            			<field name="description"/>
            		</group>
            		<group>
            		</group>
            	</form>
            </field>
        </record>

        <record id="belber_product_model_action" model="ir.actions.act_window">
            <field name="name">Model Code</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">belber.product.model</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="belber_product_model_tree_view"/>
        </record>

        <menuitem action="belber_product_model_action"
            id="menu_belber_product_model_action"
            parent="stock.menu_product_in_config_stock" sequence="7" />

        <record id="belber_product_material_tree_view" model="ir.ui.view">
            <field name="name">belber.product.material.tree</field>
            <field name="model">belber.product.material</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Material Code">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record> 
            
        <record id="belber_product_material_form_view" model="ir.ui.view">
            <field name="name">belber_module.belber.product.material.form</field>
            <field name="model">belber.product.material</field>
            <field name="arch" type="xml">
            	<form string="Material Code">
            		<group>
            			<field name="name"/>
            			<field name="description"/>
            		</group>
            		<group>
            		</group>
            	</form>
            </field>
        </record>

        <record id="belber_product_material_action" model="ir.actions.act_window">
            <field name="name">Material Code</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">belber.product.material</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="belber_product_material_tree_view"/>
        </record>

        <menuitem action="belber_product_material_action"
            id="menu_belber_product_material_action"
            parent="stock.menu_product_in_config_stock" sequence="8" />

        <record id="belber_product_colour_tree_view" model="ir.ui.view">
            <field name="name">belber.product.colour.tree</field>
            <field name="model">belber.product.colour</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Colour Code">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>
            
        <record id="belber_product_colour_form_view" model="ir.ui.view">
            <field name="name">belber_module.belber.product.colour.form</field>
            <field name="model">belber.product.colour</field>
            <field name="arch" type="xml">
            	<form string="Colour Code">
            		<group>
            			<field name="name"/>
            			<field name="description"/>
            		</group>
            		<group>
            		</group>
            	</form>
            </field>
        </record>

        <record id="belber_product_colour_action" model="ir.actions.act_window">
            <field name="name">Colour Code</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">belber.product.colour</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="belber_product_colour_tree_view"/>
        </record>

        <menuitem action="belber_product_colour_action"
            id="menu_belber_product_colour_action"
            parent="stock.menu_product_in_config_stock" sequence="9" />   

        <record id="belber_product_size_tree_view" model="ir.ui.view">
            <field name="name">belber.product.size.tree</field>
            <field name="model">belber.product.size</field>
            <field name="field_parent">child_id</field>
            <field name="arch" type="xml">
                <tree toolbar="True" string="Size Code">
                    <field name="name"/>
                    <field name="description"/>
                </tree>
            </field>
        </record>

        <record id="belber_product_size_form_view" model="ir.ui.view">
            <field name="name">belber_module.belber.product.size.form</field>
            <field name="model">belber.product.size</field>
            <field name="arch" type="xml">
            	<form string="Size Code">
            		<group>
            			<field name="name"/>
            			<field name="description"/>
            		</group>
            		<group>
            		</group>
            	</form>
            </field>
        </record>

        <record id="belber_product_size_action" model="ir.actions.act_window">
            <field name="name">Size Code</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">belber.product.size</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="belber_product_size_tree_view"/>
        </record>

        <menuitem action="belber_product_size_action"
            id="menu_belber_product_size_action"
            parent="stock.menu_product_in_config_stock" sequence="10" />         
                           
	</data>
</openerp>
